python-systemd/Makefile
2015-07-05 15:10:30 -04:00

5 lines
202 B
Makefile

SED = sed
INCLUDE_DIR = /usr/include/
systemd/id128-constants.h: $(INCLUDE_DIR)/systemd/sd-messages.h
$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@