33333
28th June 2014, 04:46
Hi,
I want to create a dependency between a file in my project and an arbitrary other file that may or may not be in the project. Say for example foo.cpp is dependent /etc/passwd. This is pretty much basic `make` but I can't figure out how to do this from qmake.
To clarify; qmake will generate a makefile with the following lines:
...
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
...
I want to add an arbitrary dependency to $(TARGET). So its becomes:
...
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS) /etc/passwd
...
Thanks.
I want to create a dependency between a file in my project and an arbitrary other file that may or may not be in the project. Say for example foo.cpp is dependent /etc/passwd. This is pretty much basic `make` but I can't figure out how to do this from qmake.
To clarify; qmake will generate a makefile with the following lines:
...
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
...
I want to add an arbitrary dependency to $(TARGET). So its becomes:
...
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS) /etc/passwd
...
Thanks.