shithub: scc

ref: 281ed1c6bfbebe92f24377d6e2af85c635cc8b64
dir: /inc/Makefile/

View raw version
.POSIX:

PROJECTDIR = ..

include $(PROJECTDIR)/rules.mk
include inclst.mk

all: config

config: $(SYSHDR)

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

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

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

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

distclean:
	rm -f $(SYSHDR)