Skip to content

Commit

Permalink
Add suffix to manpage source files
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoncek committed Aug 20, 2024
1 parent fbe5542 commit cb5c5d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(call Executable_file,jurand): $(call Object_file,jurand.cpp)
$(call Executable_file,jurand_test): $(call Object_file,jurand_test.cpp)

manpages: \
$(call Manpage_7,java_remove_annotations)\
$(call Manpage_7,java_remove_imports)\
$(call Manpage,java_remove_annotations.7)\
$(call Manpage,java_remove_imports.7)\

-include target/dependencies/*.mk
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAKEFLAGS += -r
Dependency_file = $(addprefix target/dependencies/,$(addsuffix .mk,$(subst /,.,$(basename $(1)))))
Object_file = $(addprefix target/object_files/,$(addsuffix .o,$(subst /,.,$(basename $(1)))))
Executable_file = $(addprefix target/bin/,$(addsuffix ,$(subst /,.,$(basename $(1)))))
Manpage_7 = $(addprefix target/manpages/,$(addsuffix .7,$(1)))
Manpage = $(addprefix target/manpages/,$(1))

clean:
@rm -rfv target
Expand All @@ -19,7 +19,7 @@ endef
$(eval $(call Variable_rule,target/compile_flags,$$(CXX) $$(CXXFLAGS)))
$(eval $(call Variable_rule,target/link_flags,$$(CXX) $$(LDFLAGS) $$(LDLIBS)))

target/manpages/%.7: manpages/%.adoc
target/manpages/%: manpages/%.adoc
asciidoctor -b manpage -D target/manpages $<

# $(call Object_file,%) $(call Dependency_file,%)&: src/%.cpp target/compile_flags | target/object_files target/dependencies
Expand Down

0 comments on commit cb5c5d8

Please sign in to comment.