anmachen
to turn on
To switch on a device, a machine, or a light.
Es wird dunkel, kannst du bitte das Licht anmachen?
It's getting dark; could you please turn on the light?

to turn on / hit on / dress
Loading your saved state.
to turn on
To switch on a device, a machine, or a light.
Es wird dunkel, kannst du bitte das Licht anmachen?
It's getting dark; could you please turn on the light?

'Anmachen' is a separable verb. In main clauses, the prefix 'an' separates from the verb; in subordinate clauses, the verb stays together; and in the infinitive with 'zu', 'zu' stands between the prefix and the stem.
Machst du bitte die Heizung an?
Could you please turn the heating on?
The meaning of 'anmachen' depends strongly on the object. 'Das Licht anmachen' means to turn on the light, 'den Salat anmachen' means to dress the salad, and 'jemanden anmachen' means to flirt with or provoke someone.
Kannst du den Fernseher anmachen? Der Film beginnt gleich.
Can you turn on the TV? The film is about to start.
Many meanings of 'anmachen' are colloquial. Turning on devices, flirting, and provoking someone are especially typical of spoken language.
Mach mal die Musik leiser, die Nachbarn beschweren sich schon.
Turn the music down a bit; the neighbors are already complaining.
When the object is a person ('jemanden anmachen'), it can mean two things: to flirt with someone or to provoke someone. Only the context and tone of voice make clear what is meant.
Ein Mann hat sie an der Bar angemacht und ihr einen Drink angeboten.
A man hit on her at the bar and offered her a drink.
In the context of food, 'anmachen' almost always means to mix a salad with a sauce. The object here is typically 'der Salat' (the salad).
Den Gurkensalat mache ich immer mit Dill und Sahne an.
I always dress the cucumber salad with dill and cream.
In combination with 'Feuer' (fire), 'Kamin' (fireplace), 'Kerze' (candle), or 'Zigarette' (cigarette), 'anmachen' means the same as 'anzünden' (to light).
Es ist romantisch, abends den Kamin anzumachen.
It's romantic to light the fireplace in the evening.
When 'anmachen' means 'befestigen' (to attach), it is often followed by a location with the preposition 'an' and the dative. You attach something to a wall, to a door, etc.
Der Hausmeister hat das neue Regal an der Wand angemacht.
The caretaker attached the new shelf to the wall.
to attach / bring up
'anbringen' and 'anmachen' can both mean that something is attached to a surface. 'Anbringen' is the more neutral and more precise form, especially when something is mounted neatly or attached permanently. 'Anmachen' in this meaning is more colloquial and can also sound very general. In addition, 'anmachen' has many other meanings, for example turning on a light or provoking someone. This means misunderstandings can easily happen. If you want to say clearly and neutrally that something is being attached, 'anbringen' is usually safer.

Ich mache morgen noch ein paar Fotos an die Pinnwand.
Tomorrow I'll attach a few more photos to the pinboard.
Nico bringt die Garderobe an, weil im Flur mehr Platz sein soll.
Nico mounts the coat rack because there should be more space in the hallway.