-p N or --strip-path N will strip up to N leading path elements for a

source file's path.
This commit is contained in:
Bill Currie 2002-04-10 19:52:48 +00:00
parent 32dfbd8c11
commit 03ab75704f
4 changed files with 29 additions and 3 deletions

View file

@ -14,6 +14,7 @@ GZ=.gz
else
GZ=
endif
STRIP=$(shell echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c)
pkgdata_DATA= menu.dat$(GZ)
@ -24,7 +25,7 @@ menu_src= \
servlist.qc string_def.qc stringh_def.qc
menu.dat$(GZ): menu.src $(menu_src)
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -P $<
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -P $<
$(GZIP)
EXTRA_DIST= $(menu_src)