mirror of
https://github.com/flynx/photobook.git
synced 2026-01-12 13:15:34 +00:00
tweaking Makefile...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
561273e27c
commit
2e659072f3
12
Makefile
12
Makefile
@ -245,11 +245,10 @@ LN := cp -l
|
|||||||
|
|
||||||
# list of dependencies...
|
# list of dependencies...
|
||||||
#
|
#
|
||||||
# NOTE: grep's -z flag generates a bunch if nulls that we need to clean
|
|
||||||
# out via tr.
|
|
||||||
DEPENDS.txt: $(MODULE).cls
|
DEPENDS.txt: $(MODULE).cls
|
||||||
make depends \
|
make depends \
|
||||||
| grep -a hard \
|
| grep -v make \
|
||||||
|
| sed -e 's/^/hard /' \
|
||||||
> $@
|
> $@
|
||||||
|
|
||||||
|
|
||||||
@ -262,13 +261,18 @@ version:
|
|||||||
@echo $(VERSION)
|
@echo $(VERSION)
|
||||||
|
|
||||||
|
|
||||||
|
# NOTE: grep's -z flag generates a bunch if nulls that we need to clean
|
||||||
|
# out via tr.
|
||||||
|
# XXX this is a bit ugly -- adding/removing "hard" and then adding it
|
||||||
|
# again for DEPENDS.txt...
|
||||||
.PHONY: depends
|
.PHONY: depends
|
||||||
depends: $(MODULE).cls
|
depends: $(MODULE).cls
|
||||||
@cat $< \
|
@cat $< \
|
||||||
| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
|
| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
|
||||||
| sed -e 's/.*{\(.*\)}/hard \1\n/' \
|
| sed -e 's/.*{\(.*\)}/hard \1\n/' \
|
||||||
| grep -a hard \
|
| grep -a hard \
|
||||||
| tr -d '\000'
|
| tr -d '\000' \
|
||||||
|
| cut -d " " -f 2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user