diff options
author | midipix <writeonce@midipix.org> | 2019-01-07 03:19:35 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-01-09 22:43:14 -0500 |
commit | 0bc6cc993c32253dcc5dc21bfe35f04d03ebd366 (patch) | |
tree | b8cffcccdec9b482735a43a8a0eb6190dedf9118 /project | |
parent | 0bbcdb37e87852dde9a8fd09ca64739ae50e1846 (diff) | |
download | mmglue-0bc6cc993c32253dcc5dc21bfe35f04d03ebd366.tar.bz2 mmglue-0bc6cc993c32253dcc5dc21bfe35f04d03ebd366.tar.xz |
project: fixed dependency of alltypes.h & syscall.h on build/include/bits/.
Diffstat (limited to 'project')
-rw-r--r-- | project/headers.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/project/headers.mk b/project/headers.mk index 59125f9..befa9bf 100644 --- a/project/headers.mk +++ b/project/headers.mk @@ -15,9 +15,10 @@ ARCH_GEN_H = $(ALLTYPES_H) $(SYSCALL_H) ALLTYPES_DEPS = \ $(PORT_DIR)/arch/$(ARCH)/bits/alltypes.h.in \ $(SOURCE_DIR)/include/alltypes.h.in \ - $(SOURCE_DIR)/tools/mkalltypes.sed + $(SOURCE_DIR)/tools/mkalltypes.sed \ + | build/include/bits/ -$(ALLTYPES_H): $(ALLTYPES_DEPS) build/include/bits/ +$(ALLTYPES_H): $(ALLTYPES_DEPS) sed -f $(SOURCE_DIR)/tools/mkalltypes.sed \ $(PORT_DIR)/arch/$(ARCH)/bits/alltypes.h.in \ $(SOURCE_DIR)/include/alltypes.h.in > $@ @@ -26,13 +27,13 @@ build/syscall_h.tag: touch $@ touch $(SYSCALL_H) +build/syscall-copy.tag: | build/include/bits/ build/syscall-copy.tag: $(PORT_DIR)/arch/$(ARCH)/bits/syscall.h - mkdir -p build/include/bits/ cp $< $(SYSCALL_H) touch $@ +build/syscall-gen.tag: | build/include/bits/ build/syscall-gen.tag: $(PORT_DIR)/arch/$(ARCH)/bits/syscall.h.in - mkdir -p build/include/bits/ cp $< $(SYSCALL_H).tmp sed -n -e 's/__NR_/SYS_/p' < $< >> $(SYSCALL_H).tmp mv $(SYSCALL_H).tmp $(SYSCALL_H) |