diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 09:51:37 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 09:51:37 -0600 |
commit | d559c50a98e65ce889411b46ab108b392907e0f0 (patch) | |
tree | e38f83c11ae43f48aadead70f180be30df2bab78 /Makefile | |
parent | fbd945a03f2d706bb4d62aab6a607c1694d6d77a (diff) |
wip 9p
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -6,21 +6,17 @@ LDFLAGS += -static linux.git = $(HOME)/src/github.com/torvalds/linux -3rd-party/linux-errno.txt: - { \ - cd $(linux.git) && \ - echo "# Generated from linux.git $$(git describe). DO NOT EDIT!" && \ - git ls-files include/uapi/ | grep errno | xargs grep -E '#\s*define\s+E[A-Z0-9]+\s+[0-9]+' | awk '{print $$3, $$2}' | sort --numeric-sort && \ - :; } >$@ +3rd-party/linux-errno.txt: %: %.gen + $< $(linux.git) 9p/linux-errno.h: %: %.gen 3rd-party/linux-errno.txt $^ >$@ -9p/%.c 9p/%.h: 9p/generate 9p/%.txt +9p/defs-%.c 9p/defs-%.h: 9p/defs.gen 9p/%.txt $^ srv9p: srv9p.o coroutine.o net9p.o 9p/9P2000.o -sources_py = 9p/generate +sources_py = 9p/defs.gen sources_py += 9p/linux-errno.h.gen lint: |