mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Use automatic Makefile variables
Instead of repeating the file names, use the automatic variables for the target and the first source file. Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
1e04f898e5
commit
83b11a162d
8
Makefile
8
Makefile
@ -19,17 +19,17 @@ all: htdocs/always.php built-docs built-po
|
|||||||
built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php docs/translation.rst
|
built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php docs/translation.rst
|
||||||
phpdoc -c docs/api/phpdoc.ini || echo "NOTICE: Failed to build optional API docs"
|
phpdoc -c docs/api/phpdoc.ini || echo "NOTICE: Failed to build optional API docs"
|
||||||
rst2pdf docs/translation.rst || echo "NOTICE: Failed to build ReST docs"
|
rst2pdf docs/translation.rst || echo "NOTICE: Failed to build ReST docs"
|
||||||
touch built-docs
|
touch $@
|
||||||
|
|
||||||
built-po: htdocs/always.php scripts/po/rebuild-translations.sh po/*.po
|
built-po: htdocs/always.php scripts/po/rebuild-translations.sh po/*.po
|
||||||
scripts/po/rebuild-translations.sh
|
scripts/po/rebuild-translations.sh
|
||||||
touch built-po
|
touch $@
|
||||||
|
|
||||||
#
|
#
|
||||||
# Insert the current version number into always.php
|
# Insert the current version number into always.php
|
||||||
#
|
#
|
||||||
htdocs/always.php: scripts/build-always.sh VERSION dba/davical.sql inc/always.php.in
|
htdocs/always.php: inc/always.php.in scripts/build-always.sh VERSION dba/davical.sql
|
||||||
scripts/build-always.sh <inc/always.php.in >htdocs/always.php
|
scripts/build-always.sh <$< >$@
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build a release .tar.gz file in the directory above us
|
# Build a release .tar.gz file in the directory above us
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user