shithub: scc

ref: 1fcd39f3a818478f4d7da9bb333e02d06531ddd4
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)