Diff

Differences From Artifact [8ce95f72a7]:

To Artifact [c0971efb30]:


    12     12   vpath %.c $(srcdir)
    13     13   
    14     14   all: filed
    15     15   
    16     16   filed: filed.o
    17     17   	$(CC) $(CFLAGS) $(LDFLAGS) -o "$@" $^ $(LIBS)
    18     18   
    19         -filed.o: $(srcdir)/filed.c filed-mime-types.h
           19  +filed.o: $(srcdir)/filed.c filed-mime-types.h filed.seccomp.h
    20     20   
    21     21   filed-mime-types.h: $(srcdir)/generate-mime-types $(srcdir)/mime.types
    22     22   	'$(srcdir)/generate-mime-types' '$(MIMETYPES)' > filed-mime-types.h.new || \
    23     23   		'$(srcdir)/generate-mime-types' '$(srcdir)/mime.types' > filed-mime-types.h.new
    24     24   	mv filed-mime-types.h.new filed-mime-types.h
           25  +
           26  +filed.seccomp.h: $(srcdir)/filed.seccomp $(srcdir)/generate-seccomp-filter
           27  +	$(srcdir)/generate-seccomp-filter filed.seccomp x86_64 "" i386 "" > filed.seccomp.h.new
           28  +	mv filed.seccomp.h.new filed.seccomp.h
    25     29   
    26     30   install: filed $(srcdir)/filed.1
    27     31   	test -d "$(DESTDIR)$(mandir)/man1" || mkdir -p "$(DESTDIR)$(mandir)/man1"
    28     32   	test -d "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
    29     33   	cp '$(srcdir)/filed.1' "$(DESTDIR)$(mandir)/man1/"
    30     34   	cp filed "$(DESTDIR)$(bindir)/"
    31     35   
    32     36   clean:
    33     37   	rm -f filed filed.o
    34         -	rm -f filed-mime-types.h.new
           38  +	rm -f filed-mime-types.h.new filed.seccomp.h.new
    35     39   
    36     40   distclean: clean
    37         -	rm -f filed-mime-types.h
           41  +	rm -f filed-mime-types.h filed.seccomp.h
    38     42   
    39     43   .PHONY: all install clean distclean