Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fachgruppenwebseite Metadaten
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fginfo
Fachgruppenwebseite Metadaten
Commits
99eb4223
Verified
Commit
99eb4223
authored
2 years ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
updated Makefile
parent
c3bae3c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+7
-89
7 additions, 89 deletions
Makefile
with
7 additions
and
89 deletions
Makefile
+
7
−
89
View file @
99eb4223
PY
?=
PELICAN
?=
pelican
PELICANOPTS
=
.PHONY
:
html
html
:
run
BASEDIR
=
$(
CURDIR
)
INPUTDIR
=
$(
BASEDIR
)
/content
OUTPUTDIR
=
$(
BASEDIR
)
/output
CONFFILE
=
$(
BASEDIR
)
/pelicanconf.py
PUBLISHCONF
=
$(
BASEDIR
)
/publishconf.py
.PHONY
:
publish
publish
:
run
SSH_HOST
=
fg.informatik.uni-goettingen.de
SSH_PORT
=
22
SSH_USER
=
gitlab
SSH_TARGET_DIR
=
/home/gitlab/public
DEBUG
?=
0
ifeq
($(DEBUG), 1)
PELICANOPTS
+=
-D
endif
RELATIVE
?=
0
ifeq
($(RELATIVE), 1)
PELICANOPTS
+=
--relative-urls
endif
SERVER
?=
"0.0.0.0"
PORT
?=
0
ifneq
($(PORT), 0)
PELICANOPTS
+=
-p
$(
PORT
)
endif
.PHONY
:
default
default
:
html
help
:
@
echo
'Makefile für die Webseite der Fachgruppe Informatik. '
@
echo
' '
@
echo
'Usage: '
@
echo
' make html (re)generate the web site '
@
echo
' make clean remove the generated files '
@
echo
' make regenerate regenerate files upon modification '
@
echo
' make publish generate using production settings '
@
echo
' make serve [PORT=8000] serve site at http://localhost:8000'
@
echo
' make serve-global [SERVER=0.0.0.0] serve (as root) to
$(
SERVER
)
:80 '
@
echo
' make devserver [PORT=8000] serve and regenerate together '
@
echo
' make devserver-global regenerate and serve on 0.0.0.0 '
@
#echo ' make ssh_upload upload the web site via SSH '
@
#echo ' make sftp_upload upload the web site via SFTP '
@
#echo ' make rsync_upload upload the web site via rsync+ssh '
@
echo
' '
@
echo
'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
@
echo
'Set the RELATIVE variable to 1 to enable relative urls '
@
echo
' '
html
:
"
$(
PELICAN
)
"
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
clean
:
[
!
-d
"
$(
OUTPUTDIR
)
"
]
||
rm
-rf
"
$(
OUTPUTDIR
)
"
regenerate
:
"
$(
PELICAN
)
"
-r
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
serve
:
"
$(
PELICAN
)
"
-l
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
serve-global
:
"
$(
PELICAN
)
"
-l
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
-b
$(
SERVER
)
devserver
:
"
$(
PELICAN
)
"
-lr
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
devserver-global
:
$(
PELICAN
)
-lr
$(
INPUTDIR
)
-o
$(
OUTPUTDIR
)
-s
$(
CONFFILE
)
$(
PELICANOPTS
)
-b
0.0.0.0
publish
:
"
$(
PELICAN
)
"
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
PUBLISHCONF
)
"
$(
PELICANOPTS
)
ssh_upload
:
publish
scp
-P
$(
SSH_PORT
)
-r
"
$(
OUTPUTDIR
)
"
/
*
"
$(
SSH_USER
)
@
$(
SSH_HOST
)
:
$(
SSH_TARGET_DIR
)
"
sftp_upload
:
publish
printf
'put -r
$(
OUTPUTDIR
)
/*'
| sftp
$(
SSH_USER
)
@
$(
SSH_HOST
)
:
$(
SSH_TARGET_DIR
)
rsync_upload
:
publish
rsync
-e
"ssh -p
$(
SSH_PORT
)
"
-P
-rvzc
--include
tags
--cvs-exclude
--delete
"
$(
OUTPUTDIR
)
"
/
"
$(
SSH_USER
)
@
$(
SSH_HOST
)
:
$(
SSH_TARGET_DIR
)
"
.PHONY
:
html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload
.PHONY
:
run
run
:
make
-C
fgs
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment