mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
-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:
parent
32dfbd8c11
commit
03ab75704f
4 changed files with 29 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue