24 lines
451 B
Makefile
24 lines
451 B
Makefile
GELF_H := glibc_elf.h
|
|
MIRROR := https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=elf/elf.h;hb=HEAD
|
|
define HEADER
|
|
/* This file was autogenerated with `make sync` by the Enby project.\n\
|
|
* UPSTREAM: $(MIRROR)\n\
|
|
*/\n\
|
|
|
|
endef
|
|
|
|
all:
|
|
@echo Usage: make sync
|
|
|
|
.PHONY: sync
|
|
sync: clean $(GELF_H)
|
|
|
|
clean:
|
|
rm -f $(GELF_H)
|
|
|
|
$(GELF_H):
|
|
{ echo -e '$(HEADER)'; wget -q -O- '$(MIRROR)'; } \
|
|
| clang-format >> $(GELF_H)
|
|
|
|
# grep -v features.h $@ > $@
|
|
|