diff options
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/src/Makefile | 1 | ||||
-rw-r--r-- | src/libsystemd/src/sd-journal/Makefile | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/src/Makefile b/src/libsystemd/src/Makefile index 7178aab909..afcbf8d4e6 100644 --- a/src/libsystemd/src/Makefile +++ b/src/libsystemd/src/Makefile @@ -157,6 +157,7 @@ nodist_libsystemd_journal_internal_la_SOURCES = \ gperf_txt_sources += \ src/journal/audit_type-list.txt +# using _CFLAGS = in the conditional below would suppress AM_CFLAGS libsystemd_journal_internal_la_CFLAGS = \ libsystemd_journal_internal_la_LIBADD = diff --git a/src/libsystemd/src/sd-journal/Makefile b/src/libsystemd/src/sd-journal/Makefile index f21c66ad74..d0415fb0d3 100644 --- a/src/libsystemd/src/sd-journal/Makefile +++ b/src/libsystemd/src/sd-journal/Makefile @@ -29,6 +29,7 @@ audit_list_includes += -include libaudit.h endif # HAVE_AUDIT $(outdir)/audit_type-list.txt: + $(AM_V_GEN)$(CPP) $(sd.ALL_CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@ $(outdir)/audit_type-to-name.h: $(outdir)/audit_type-list.txt $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@ |