shithub: scc

ref: d47bc8e5d2a7ad460b7cd2f6028ddf79b22049f9
dir: /inc/Makefile/

View raw version
.POSIX:

PROJECTDIR = ..

include $(PROJECTDIR)/rules.mk

HDR = ldflags.h syscrts.h sysincludes.h syslibs.h

all:

dep: $(HDR)

ldflags.h:
	rm -f $@ ; \
	trap "rm -f $$$$.h" 0 2 3; \
	cat < ldflags.def.h > $$$$.h; \
	mv $$$$.h $@

syscrts.h:
	rm -f $@ ; \
	trap "rm -f $$$$.h" 0 2 3; \
	sed 's,PREFIX,"$(PREFIX)",g' < syscrts.def.h > $$$$.h && \
	mv $$$$.h $@

sysincludes.h:
	rm -f $@ ; \
	trap "rm -f $$$$.h" 0 2 3; \
	sed 's,PREFIX,"$(PREFIX)",g' < sysincludes.def.h > $$$$.h && \
	mv $$$$.h $@

syslibs.h:
	rm -f $@ ; \
	trap "rm -f $$$$.h" 0 2 3; \
	sed 's,PREFIX,"$(PREFIX)",g' < syslibs.def.h > $$$$.h && \
	mv $$$$.h $@

clean:
distclean:
	rm -f $(HDR)